//
//  ViewManager.m
//  单例
//
//  Created by mac on 17/7/2.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ViewManager.h"
#import <Foundation/Foundation.h>
#import "ViewController.h"
@implementation ViewManager

static ViewManager* mInstance;

@synthesize NavigationController = _navigationController;


+ (ViewManager*)shareInstance
{
    if (nil == mInstance)
    {
        mInstance = [[ViewManager alloc] init];
    }
    return mInstance;
}

-(id)init
{
    self = [super init];
    if(self != nil)
    {
        //LoginController* ctrlEmtry = [[LoginController alloc] init];
        ViewController* ctrlEmtry = [[ViewController alloc] init];
        _navigationController = [[UINavigationController alloc] initWithRootViewController:ctrlEmtry];
        _navigationController.navigationBar.hidden = YES;
        _navigationController.interactivePopGestureRecognizer.enabled = NO;
    }
    
    return self;
}
@end
